package com.bank.dao.impl;

import com.bank.dao.DBUtil;
import com.bank.dao.Interface.InsertDao;
import com.bank.model.Transaction;

public class InsertDaoImpl extends DBUtil implements InsertDao {
    @Override
    public void addTransaction(Transaction transaction) {
        String sql="INSERT INTO tb_transaction(datetime,ts_money,card_id) VALUES(?,?,?);";
        super.executeUpdate(sql,transaction.getDatetime(),transaction.getTs_money(),transaction.getCard_id());
    }

}
